﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace ApiManage.Models.zyhModels
{
    public partial class SysUser
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 登录账号
        /// </summary>
        public string LoginName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string LoginPwd { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        public int? RoleId { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImg { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Mark { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
    public partial class SysUser
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [NotMapped]
        public string RoleName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public List<string> RoleMenu { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public List<string> RoleButton { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public List<string> RoleColumn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public List<SysMenu> Menus { get; set; }
    }
}
